<?php
include('Convention.php');
include('../functions/db_functions.php');

$conn = db_connect();

if ($conn)
{
	$result = pg_query('SELECT * FROM convention');
}

date_default_timezone_set('America/New_York');
$start = new DateTime();
$end = new DateTime();
$con = new Convention('Homoeroticon 65', 'Geneseo College Union', $start, $end);
$con->save();

echo '('.$con->getID().') ';
echo $con->getName();
echo ' (';
echo $con->getStartTime();
echo ' to ';
echo $con->getEndTime();
echo ' )';
?>